/*
 * Licensed under the Apache License, Version 2.0
 * (the "License"); you may not use this file except in compliance with
 * the License.  You may obtain a copy of the License at
 * 
 *      http://www.apache.org/licenses/LICENSE-2.0
 * 
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package org.submarine.exchange;

/**
 * @file org.submarine.exchange.TransferObject.java
 *
 * 传输对象
 * 
 * @author gaojian
 * @created 2013-10-23 下午5:41:41
 * @version 0.0.1
 * @since 0.0.1
 * 
 */
public class TransferObject {
	
	private TransferObjectType transferObjectType;
	
	private byte[] data;

	/**
	 * @return the transferObjectType
	 */
	public TransferObjectType getTransferObjectType() {
		return transferObjectType;
	}

	/**
	 * @param transferObjectType the transferObjectType to set
	 */
	public void setTransferObjectType(TransferObjectType transferObjectType) {
		this.transferObjectType = transferObjectType;
	}

	/**
	 * @return the data
	 */
	public byte[] getData() {
		return data;
	}

	/**
	 * @param data the data to set
	 */
	public void setData(byte[] data) {
		this.data = data;
	}

	public enum TransferObjectType {
		REQUEST,
		RESPONSE;
	}
}
